﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Form_List.aspx.cs" Inherits="masterdata_Form_List" MasterPageFile="~/MasterPage.master"%>

 <%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager"  TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>系列维护</title>

    

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" colspan="7">
                    查询
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    制造商:
                </td>
                <td>
                    <asp:DropDownList ID="ddlManu" runat="server" Width="130">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    品类:
                </td>
                <td>
                    <asp:DropDownList ID="ddlCategroy" runat="server" Width="130">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    品牌:
                </td>
                <td>
                    <asp:DropDownList ID="ddlBrand" runat="server" Width="130">
                    </asp:DropDownList>
                </td>
               
            </tr>
            <tr>
            <td class="tablefield" >系列名称:</td>
             <td>
                 <asp:TextBox ID="txtFormName" runat="server"></asp:TextBox>
                </td>
              <td class="tablefield">有效:</td>
               <td>
                   <asp:CheckBox ID="chkActive" Checked="true" runat="server" /></td>
                <td></td>
                 <td>
                 <asp:Button runat="server" Text="查询" CssClass="wsd_button2" ID="btnSrh" OnClick="btnSrh_Click" />
                     <input type="button" class="wsd_button2" size="47" value="重  置" name="reset" onclick="clearForm('form1')" />
                 </td>
            </tr>
        </table>
        <br />
        <%--        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle">
                    系列列表
                </td>
                <td class="tabletitle">
                    <tup:gridviewtoolbarusercontrol id="GridViewToolbarUserControl1" runat="server" gridviewid="GridView1"
                        ongvtbsetcolumnsbuttonevent="GridViewToolbarUserControl1_OnGVTBSetColumnsButtonEvent" />
                </td>
            </tr>
        </table>--%>
         <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
        <ContentTemplate>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False"
                        EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                        EnableEmptyContentRender="true" AllowPaging="True" PageSize="12" 
                        onpageindexchanging="GridView1_PageIndexChanging"  BorderWidth="0"
                        EnableModelValidation="True">
                        <HeaderStyle CssClass="titlist" />
                        <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:HyperLinkField HeaderText="代码" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Form_Maintain.aspx?id={0}" 
                             DataTextField="FORM_CODE" ControlStyle-Font-Underline="false" ItemStyle-Width="15%">
                                <ControlStyle Font-Underline="False"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:HyperLinkField HeaderText="系列名称" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Form_Maintain.aspx?id={0}"
                                DataTextField="FORM_NAME" ControlStyle-Font-Underline="false" ItemStyle-Width="20%">
                                <ControlStyle Font-Underline="False"  ></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="MANUFACTURER_NAME" HeaderText="制造商" ItemStyle-Width="18%" />
                            <asp:BoundField DataField="CATEGORIES_NAME" HeaderText="品类" ItemStyle-Width="18%" />
                            <asp:BoundField DataField="BRAND_NAME"  HeaderText="品牌"  ItemStyle-Width="18%"/>
                            <asp:TemplateField HeaderText="有效" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center">
                                <ItemTemplate>
                                    <b>
                                        <%# Eval("ACTIVE").ToString().ToUpper()=="TRUE" ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%>
                                    </b>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Visible="false"  FirstPageText="首页" LastPageText="尾页" PageButtonCount="30" />
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                    </asp:GridView>        
                    <uc1:GridPager ID="GridPager1" runat="server" Visible="false" />
                </td>
            </tr>
        </table>
         </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSrh" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle">
                    操作选项
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <input id="btnAdd" type="button" class="wsd_button2" value="增  加" onclick="location.href='Form_Maintain.aspx'" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
